﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Index.Master" AutoEventWireup="true" CodeBehind="home_Orderview.aspx.cs" Inherits="Dryricenet.home_Orderview" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="CSS/order.css" rel="stylesheet" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="View">
        <h3>订单详情</h3>
        <div class="View_neir">
             <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" Width="100%" EmptyDataText="未查询到数据" Font-Size="16px" AllowPaging="True" OnPageIndexChanging="GridView1_PageIndexChanging" BackColor="White" BorderColor="#CC9966" BorderStyle="None" BorderWidth="1px" CellPadding="4" PageSize="5">
            <Columns>
                <asp:BoundField DataField="OrderDetailsID" HeaderText="编号">
                    <ControlStyle Width="80px" />
                    <HeaderStyle Height="40px" />
                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="80px" />
                </asp:BoundField>
                <asp:BoundField DataField="Ordertitle" HeaderText="订单号">
                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="200px" />
                </asp:BoundField>
                <asp:BoundField DataField="FoodName" HeaderText="菜品名称">
                    <ControlStyle Width="240px" />
                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="240px" />
                </asp:BoundField>
                <asp:ImageField DataImageUrlField="PicUrl" HeaderText="图片">
                    <ControlStyle Height="160px" Width="256px" />
                    <ItemStyle Height="160px" HorizontalAlign="Center" VerticalAlign="Middle" Width="256px" />
                </asp:ImageField>
                <asp:BoundField DataField="number" HeaderText="商品数量">
                    <ControlStyle Width="100px" />
                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="100px" />
                </asp:BoundField>
                <asp:BoundField DataField="OrderName" HeaderText="用户">
                    <ControlStyle Width="170px" />
                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="170px" />
                </asp:BoundField>
                <asp:TemplateField HeaderText="评价">
                    <%--<EditItemTemplate>
                        <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                    </EditItemTemplate>--%>
                    <ItemTemplate>
                        <a href='home_Evaluation.aspx?FoodID=<%#DataBinder.Eval(Container.DataItem,"FoodID") %>&Ordertitle=<%#DataBinder.Eval(Container.DataItem,"Ordertitle") %>' class="details_a">
                            去评价</a>
                    </ItemTemplate>
                    <ItemStyle Width="80px" />
                </asp:TemplateField>
            </Columns>
                 <FooterStyle BackColor="#FFFFCC" ForeColor="#330099" />
                 <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="#FFFFCC" />
                 <PagerStyle BackColor="#FFFFCC" ForeColor="#330099" HorizontalAlign="Center" />
                 <RowStyle BackColor="White" ForeColor="#330099" />
                 <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="#663399" />
                 <SortedAscendingCellStyle BackColor="#FEFCEB" />
                 <SortedAscendingHeaderStyle BackColor="#AF0101" />
                 <SortedDescendingCellStyle BackColor="#F6F0C0" />
                 <SortedDescendingHeaderStyle BackColor="#7E0000" />
        </asp:GridView>
        </div>
    </div>
</asp:Content>
